from flask_caching import Cache
from flask_sqlalchemy import SQLAlchemy

# create the extension
cache = Cache()
db = SQLAlchemy()


def init_app(app):
    cache.init_app(app, config={'CACHE_TYPE': 'simple'})
    db.init_app(app)